package com.dataart.productshop;

import java.text.SimpleDateFormat;

public interface Constants {

	final static String PROP_FILE_PATH = "${store.path}";

    final static String DEFAULT_IMAGE_URL = "${default.image}";

	final static String PROP_PICT_FILE_PATH = "${sample.pictures.path}";
	
	final static String PICT_EXPR ="([^\\s]+(\\.(?i)(jpg|png|gif|bmp))$)";
	
	final static String EXT_PREFIX ="([^\\s]+(\\.(?i)(";
	
	final static String EXT_SUFFIX ="))$)";
	
	final static String WORD_EXPR = "name:[\\w\\s]+\\n[\\s]*package:[\\w\\s]+";
	
	final static String EXT_EXPR = "(?<=\\.)[\\w]+$";

    SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");

	/**
	 * filepath without final filename and without backslash 
	 */
	final static String GET_DIR_NAME_EXPR = "[^/]+(?=/[^\\.]+\\.[\\w]+$)";
	
	final static String PREFIX = "store";

    /*------------kathedra + subject controllers----------------*/
    String KATHEDRA_N_SUBJECT_LIST_NAME= "items";
    String KATHEDRA_N_SUBJECT_CURRENT_TYPE= "elementType";

    String NEW_ELEMENT_NAME = "newElementName";

    /*------------lecturer controller----------------*/
    String SUBJECT_LIST = "subjectList";
    String KATHEDRA_LIST = "kathedraList";
    String NEW_LECTURER_NAME = "newLecturer";


    String SUBJECT_TYPE= "subject";
    String KATHEDRA_TYPE= "kathedra";
    String STUDENT_TYPE = "student";
    String LECTURER_TYPE = "lecturer";
    String GPA_TYPE = "gpa";


    interface JspNames{
        String LECTURERS = "lecturers";
        String LECTURER_ADD = "addLecturer";
        String HOME_PAGE = "home";
        String SUBJECTS = "addSubjectOrKathedra";
        String KATHEDRAS = SUBJECTS;

    }


}
